package com.hctrl.mybatis.interceptor.handler;

/**
 * @author hanchao
 * @version 1.0
 * @date 2022/5/27 21:28
 */
public class StringTypeHandler implements TypeHandler<String> {

    @Override
    public Boolean isSupport(Class<?> type) {
        return type.equals(String.class);
    }

    @Override
    public String handler(String s) {
        return new StringBuilder().append("'").append(s).append("'").toString();
    }
}
